package com.yingdong.gateserver.innter.message;

import java.util.Map;

import com.yingdong.gateserver.net.GameSession;

public class CheckOnlineSessionsMessage extends GameMessage {

	public CheckOnlineSessionsMessage(int sessionId, Map<Integer, GameSession> sessionMap) {
		super(2006, sessionId);
		writeInt(sessionMap.size());
		for (GameSession gameSession : sessionMap.values()) {
			writeInt(gameSession.getSessionId());
		}
	}

}
